package com.funny.learning.english.adapter;

import com.funny.learning.english.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class ListCourseAdapter extends BaseAdapter{
	private LayoutInflater inflater;
	
	public ListCourseAdapter(Context context) {
		inflater = LayoutInflater.from(context);
	}
	@Override
	public int getCount() {
		return 10;
	}

	@Override
	public Object getItem(int arg0) {
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		return arg0;
	}

	@Override
	public View getView(int arg0, View arg1, ViewGroup arg2) {
		if(arg1 == null){
			arg1 = inflater.inflate(R.layout.course_item, null);
		}
		return arg1;
	}

}
